package com.xxx.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 告警相关定时任务
 */
@Component
public class AlertTask {

    private static final Logger logger = LoggerFactory.getLogger(AlertTask.class);

    /**
     * 定时任务：告警
     *
     * 定时任务执行时间：10分钟执行一次，夜间（23:00~08:00）不执行
     */
     @Scheduled(fixedRate = 1000 * 600)
    public void alertTask() {
        logger.info("timeTask:alertTask() start......");

    }

}
